-- GENERATED SPELL FOR [Frenzyheart Tracker] --


function spell0_28077(pUnit, Event) --@Bear Trap,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(53432,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_28077', 1, 1)
end

function spell1_28077(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(22907,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28077', 644, 1)
end

function Sorts_28077(pUnit, Event)
local choix_sorts_28077 = math.random(0, 1)
if choix_sorts_28077 == 0 then
pUnit:RegisterEvent('spell0_28077', 1, 1)
end
if choix_sorts_28077 == 1 then
pUnit:RegisterEvent('spell1_28077', 1, 1)
end
end

function mob28077_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28077', math.random(1500, 3000), 1)
end

function mob28077_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28077_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28077_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28077, 1, 'mob28077_Action')
RegisterUnitEvent(28077, 2, 'mob28077_Leave')
RegisterUnitEvent(28077, 3, 'mob28077_Kill')
RegisterUnitEvent(28077, 4, 'mob28077_Die')
